from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.support.wait import WebDriverWait

wb = webdriver.Chrome()

WebDriverWait(wb, 10).until(expected_conditions.element_to_be_clickable(By.XPATH, "//div[@class='pxq']"))
WebDriverWait(wb, 10).until_not(expected_conditions)
